package src.com.doit.Demo01;

public class Person {
    private String name;
    private int age;
    static int a = 100;

    public static void method()
    {
        System.out.println("静态方法");
        System.out.println();
    }
    static int sum(int a,int b)
    {
        return a+b;
    }

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static int getA() {
        return a;
    }

    public static void setA(int a) {
        Person.a = a;
    }
}
